/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

/**
 *
 * @author Le Thai
 */
import dal.DbAccess;
import java.sql.ResultSet;
public class test2 {
    public static void main(String[] args) {
        DbAccess dbAccess=new DbAccess();
        ResultSet res=null;
        res=dbAccess.getResultSet("select * from HocSinh");
        try {
             while(res.next()){
                 System.out.println(res.getString(3));
             }
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }

        }
}
